<%= will_filter_scripts_tag %>

<%= will_filter_table_tag(@results, :columns => [
    [:flag, lambda{|ulang| 
      return "deleted" unless ulang.language
      image_tag("tr8n/flags/#{ulang.language.flag}.png")
    }, :title => ""],
    [:locale, lambda{|ulang|
      return "deleted" unless ulang.language
      lang = ulang.language
      html = []
      if lang.enabled?
        html << '<span style="color:green">'
      else  
        html << '<span style="color:red">'
      end
      html << lang.locale
      html << '</span>'
      html.join(' ').html_safe
    }],
    [:english_name, lambda{|ulang| 
      return "deleted" unless ulang.language
      link_to(ulang.language.english_name, :action => :view, :lang_id => ulang.language.id)
    }],
    [:native_name, lambda{|ulang| 
      return "deleted" unless ulang.language
      ulang.language.native_name
    }],
    [:right_to_left, lambda{|ulang|
      return "deleted" unless ulang.language
      lang = ulang.language
      html = []
      if lang.right_to_left?
        html << '<span style="color:red">'
      else  
        html << '<span style="color:green">'
      end
      html << lang.right_to_left?
      html << '</span>'
      html.join(' ').html_safe
    }],
    :user_id, :translator_id, :created_at
  ]) %>